package com.oamicnet.serviceone.server.api;

import com.oamicnet.serviceone.api.account.AccountInfoApi;
import com.oamicnet.serviceone.server.service.AccountInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AccountInfoApiImpl implements AccountInfoApi {

    @Autowired
    private AccountInfoService accountInfoService;

    @Override
    public int updateBalance(String accountCode, Double amount) {
        return accountInfoService.updateBalance(accountCode, amount);
    }
}
